package helper.base

import helper.base.FileHelper.Expand.createIfNotExists
import java.io.File

object TextHelper {
    fun String.toTextFile(
        fileName: String,
    ) {
        val file = File(
            fileName,
        )
        file.createIfNotExists()
        file.writeText(
            this,
        )
    }
}